package com.itheima.bank;

public class BankFacade {

    //门面模式的例子
    public void all(){
        openAccount();
        transfer();
        withdraw();
        pay();
    }

    public void withdraw(){
        System.out.println("取款");
    }

    public void openAccount(){
        System.out.println("开户");
    }
    public void transfer(){
        System.out.println("转账");
    }
    public void pay(){
        System.out.println("支付");
    }
    public static void main(String[] args) {
        BankFacade bankFacade = new BankFacade();
        bankFacade.all();
    }
}
